Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update link to PyPSA-Eur files #655

Merged
merged 1 commit into from
Jun 28, 2022
Merged

Update link to PyPSA-Eur files #655

merged 1 commit into from
Jun 28, 2022

Conversation

rouille
Copy link
Collaborator

@rouille rouille commented Jun 28, 2022

Pull Request doc

Purpose

Use PyPSA-Eur extra components files. These ones include, among other things, stores

What the code is doing

N/A

Testing

Before:

(PowerSimData) [~/CEM/PowerSimData] (ben/import) brdo$ python
Python 3.9.11 (main, May  4 2022, 12:39:41) 
[Clang 12.0.0 (clang-1200.0.26.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from powersimdata.network.europe_tub.model import TUB
>>> tub = TUB("Europe", reduction=1024)
Title: PyPSA-Eur: An Open Optimisation Model of the European Transmission System (Dataset)
Keywords: power system model, capacity expansion model, energy system model, electricity system model, python
Publication date: 2021-09-22
DOI: 10.5281/zenodo.5521712
Total size: 1767.1 MB

Link: https://zenodo.org/api/files/6e58c6dc-083b-46c8-8255-8516e3eb0ed8/networks.zip   size: 1767.1 MB
networks.zip is already downloaded correctly.
All files have been downloaded.
>>> tub.build()
WARNING:pypsa.io:
Importing PyPSA from older version of PyPSA than current version.
Please read the release notes at https://pypsa.readthedocs.io/en/latest/release_notes.html
carefully to prepare your network for import.
Currently used PyPSA version [0, 19, 3], imported network file PyPSA version [0, 18, 0].

INFO:pypsa.io:Imported network elec_s_1024.nc has buses, carriers, generators, lines, links, loads, storage_units
>>> tub.network.stores
Empty DataFrame
Columns: [bus, type, carrier, e_nom, e_nom_extendable, e_nom_min, e_nom_max, e_min_pu, e_max_pu, e_initial, e_initial_per_period, e_cyclic, e_cyclic_per_period, p_set, q_set, sign, marginal_cost, capital_cost, standing_loss, build_year, lifetime, e_nom_opt]
Index: []

After:

(PowerSimData) [~/CEM/PowerSimData] (ben/import) brdo$ git checkout ben/tub
Switched to branch 'ben/tub'
Your branch is up to date with 'origin/ben/tub'.
(PowerSimData) [~/CEM/PowerSimData] (ben/tub) brdo$ python
Python 3.9.11 (main, May  4 2022, 12:39:41) 
[Clang 12.0.0 (clang-1200.0.26.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from powersimdata.network.europe_tub.model import TUB
>>> tub = TUB("Europe", reduction=1024)
Title: PyPSA-Eur: An Open Optimisation Model of the European Transmission System (Dataset)
Keywords: power system model, capacity expansion model, energy system model, electricity system model, python
Publication date: 2021-09-22
DOI: 10.5281/zenodo.5521712
Total size: 1767.1 MB

Link: https://zenodo.org/api/files/6e58c6dc-083b-46c8-8255-8516e3eb0ed8/networks.zip   size: 1767.1 MB
networks.zip is already downloaded correctly.
All files have been downloaded.
>>> tub.build()
WARNING:pypsa.io:
Importing PyPSA from older version of PyPSA than current version.
Please read the release notes at https://pypsa.readthedocs.io/en/latest/release_notes.html
carefully to prepare your network for import.
Currently used PyPSA version [0, 19, 3], imported network file PyPSA version [0, 18, 0].

INFO:pypsa.io:Imported network elec_s_1024_ec.nc has buses, carriers, generators, lines, links, loads, storage_units, stores
>>> tub.network.stores
                         bus  carrier  e_nom_extendable  e_cyclic  capital_cost type  ...  sign  marginal_cost  standing_loss  build_year  lifetime  e_nom_opt
Store                                                                                 ...                                                                     
AL0 0 H2            AL0 0 H2       H2              True      True    796.283619       ...   1.0            0.0            0.0           0       inf        0.0
AT0 0 H2            AT0 0 H2       H2              True      True    796.283619       ...   1.0            0.0            0.0           0       inf        0.0
AT0 1 H2            AT0 1 H2       H2              True      True    796.283619       ...   1.0            0.0            0.0           0       inf        0.0
AT0 10 H2          AT0 10 H2       H2              True      True    796.283619       ...   1.0            0.0            0.0           0       inf        0.0
AT0 11 H2          AT0 11 H2       H2              True      True    796.283619       ...   1.0            0.0            0.0           0       inf        0.0
...                      ...      ...               ...       ...           ...  ...  ...   ...            ...            ...         ...       ...        ...
SK0 4 battery  SK0 4 battery  battery              True      True  15877.883774       ...   1.0            0.0            0.0           0       inf        0.0
SK0 5 battery  SK0 5 battery  battery              True      True  15877.883774       ...   1.0            0.0            0.0           0       inf        0.0
SK0 6 battery  SK0 6 battery  battery              True      True  15877.883774       ...   1.0            0.0            0.0           0       inf        0.0
SK0 7 battery  SK0 7 battery  battery              True      True  15877.883774       ...   1.0            0.0            0.0           0       inf        0.0
SK0 8 battery  SK0 8 battery  battery              True      True  15877.883774       ...   1.0            0.0            0.0           0       inf        0.0

[2048 rows x 22 columns]

Where to look

The link to the files on Zenodo has been updated

Usage Example/Visuals

N/A

Time estimate

2min

@rouille rouille self-assigned this Jun 28, 2022
@rouille rouille changed the title chore: use extra components PyPS-Eur files from zenodo Update link to PyPSA-Eur files Jun 28, 2022
@BainanXia
Copy link
Collaborator

It looks good. Is there anything else WIP since it is a draft PR?

@rouille rouille marked this pull request as ready for review June 28, 2022 20:58
Copy link
Collaborator

@BainanXia BainanXia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rouille rouille merged commit cbc13de into develop Jun 28, 2022
@rouille rouille deleted the ben/tub branch June 28, 2022 21:46
@jenhagg jenhagg mentioned this pull request Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants